<div class="sidebar" id="sidebar">

    <script type="text/javascript">

        try{gds.settings.check('sidebar' , 'fixed')}catch(e){}

    </script>

    <ul id="menuNav" class="nav nav-list">
        <li class="active">
            <a th:href="@{/}">
                <i class="icon-dashboard"></i>
                <span class="menu-text"> 首页 </span>
            </a>
        </li>

        <li>

            <a th:href="@{/sensitive}">

                <i class="icon-bolt"></i>

                <span class="menu-text"> 敏感项管理 </span>

            </a>

        </li>

        <li>

            <a th:href="@{/roles}">

                <i class="icon-group"></i>

                <span class="menu-text"> 接口角色管理 </span>

            </a>

        </li>

        <li>

            <a th:href="@{/verify}">

                <i class="icon-pushpin"></i>

                <span class="menu-text"> 审核管理 </span>

            </a>

        </li>

        <li>

            <a th:href="@{/apps}">

                <i class="icon-desktop"></i>

                <span class="menu-text"> 应用管理 </span>

            </a>

        </li>
        <li>

            <a th:href="@{/interf}">

                <i class="icon-sitemap"></i>

                <span class="menu-text">接口管理 </span>

            </a>

        </li>

        <li onclick="showSubMenu('subStatics')">
            <a href="#" class="dropdown-toggle">
                <i class="icon-bar-chart"></i>
                <span class="menu-text"> 统计报表 </span>
                <b class="arrow icon-angle-down"></b>
            </a>
            <ul class="submenu" id="subStatics">
                <li>
                    <a th:href="@{/report/toApiCountPage}">
                        <i class="icon-bar-chart"></i>
                        接口统计报表
                    </a>
                </li>
                <li>
                    <a th:href="@{/report/toSensitiveItemsPage}">
                        <i class="icon-exclamation-sign"></i>
                        敏感项统计报表
                    </a>
                </li>
            </ul>
        </li>
        <li onclick="showSubMenu('subManage')">

            <a href="#" class="dropdown-toggle">

                <i class="icon-cogs"></i>

                <span class="menu-text"> 系统管理 </span>



                <b class="arrow icon-angle-down"></b>

            </a>

            <ul id="subManage" class="submenu">

                <li>

                    <a th:href="@{/manage/company}">

                        <i class="icon-double-angle-right"></i>
                        厂家管理
                    </a>

                </li>
                <li>

                    <a th:href="@{/manage/account}">

                        <i class="icon-double-angle-right"></i>
                        账号管理
                    </a>

                </li>
                <li>

                    <a th:href="@{/manage/logs}">

                        <i class="icon-double-angle-right"></i>
                        登录日志
                    </a>

                </li>

            </ul>

        </li>

    </ul><!-- /.nav-list -->



    <div class="sidebar-collapse" id="sidebar-collapse" onclick="sidebarClick()">

        <i class="icon-double-angle-left" data-icon1="icon-double-angle-left" data-icon2="icon-double-angle-right"></i>

    </div>

    <script type="text/javascript">


        try{gds.settings.check('sidebar' , 'collapsed')}catch(e){}

        sidebarClick = function () {
            var c=$("#sidebar").hasClass("menu-min");
            gds.settings.sidebar_collapsed(!c);
        }

        showSubMenu = function (id) {
            $("#" + id).toggle();
        }

        $(document).ready(function () {
           var currPath = window.location.pathname;
           $("#menuNav li").each(function (a,b) {
               $(this).removeClass('active');
               if($(b).find('a').attr('href') == currPath) {
                   $(b).find('a').parents("#menuNav > li").addClass('active');
               }
           })
        });
    </script>

</div>